import http from '@/http'

export function tokenLogin (token) {
  const data = { token }
  return http.post('tokenLogin', data)
}

export function emailLogin (verify, email) {
  const data = { verify, email }
  return http.post('EmailLogin', data)
}

export function register (icon, uid, password, email) {
  const data = { uid, password, email, icon }
  return http.post('register', data)
}

export function idLogin (uid, password) {
  const data = { uid, password }
  return http.post('/login', data)
}

export function getVerify (email) {
  return http.post('getVerify', { email })
}
